/*
 * @Description:
 * @Version: 1.0
 * @Author: Will
 * @Date: 2023-04-11 13:30:48
 * @LastEditors: MarsLay 331412466@qq.com
 * @LastEditTime: 2024-01-11 16:10:16
 * @FilePath: \cloud-spacee:\project\xr-ipad\api\api.js
 * Copyright (C) 2023 Will. All rights reserved.
 */
import { http } from "@/api/service";

// 通用接口方式
export const Api = (data, params, url, method = "POST") => {
  return http.middleware({
    method: method,
    url: url,
    data: data,
    params: params,
    custom: {
      auth: true,
    },
  });
};
